package run.feignClient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
//fallback指定，降级处理类
@FeignClient(value = "serverHystrix",fallback = DeptHystrixFallBackService.class)
public interface DeptHystrixService {
    @RequestMapping(value = "/dept/hystrix/ok")
    public String deptInfo_Ok(String id);
    @RequestMapping(value = "/dept/hystrix/timeout")
    public String deptInfo_Timeout(String id);
}